/* 整体设置 */
* {
  margin: 0px;
  padding: 0px;
}

/**
 * 设置日历的大小
 */
.calendar {
  width: 700px;
  height: 100%;
  display: block;
  padding: 42px 24px 50px;
  border: 1px solid gray;
  margin-left: 500px;
}

/**
 * 设置日历顶部盒子
 */
.calendar .calendar-title-box {
  position: relative;
  width: 100%;
  height: 36px;
  line-height: 36px;
  text-align: center;
}
.calendar-title-box {
  padding: 20px 10px;
  display: flex;
  justify-content: end;
}
.calendar-title-box > select {
  margin-right: 10px;
  padding: 5px;
}
span {
  border: 1px solid gray;
  padding: 0 15px;
}
/* 设置日历表格样式 */
.calendar-table {
  width: 100%;
  border-collapse: collapse;
}

/* 表格行高 */
.calendar-table tr {
  /* height: 100px; */
  width: 100%;
}

/* 当前天 颜色特殊显示 */
.currentDay {
  color: #1890ff;
  background-color: #e6e7ff !important;
}
.now-day {
  border-top: 2px solid blue;
}

/* 本月 文字颜色 */
.currentMonth {
  color: #999;
}

/* 其他月颜色 */
.otherMonth {
  color: #ede;
}

/* 星期标题 */
th {
  width: 100px;
  text-align: right;
  padding: 0 12px 5px 0;
}

/* 日期样式 */
td {
  width: 100px;
  height: 100px;
  text-align: right;
}

p {
  height: 100%;
  margin: 0 4px;
  border-top: 1px solid #f0f0f0;
  padding: 4px 8px 0;
}
/* 选中样式 */
td:hover {
  background-color: #f0f0f0;
}
#year,
#month,
span,
td {
  cursor: pointer;
}

#year:hover,
#month:hover {
  border-color: #1890ff;
}
.month {
  color: #1890ff;
  border: 1px solid #1890ff;
}
.year {
  margin-right: 14px;
}

/* showyear */
.show-year {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  display: none;
}
.show-year table {
  width: 100%;
}
.show-year td {
  height: 100px;
  width: 30%;
  text-align: right;
  margin: 0 10px;
  border-top: 1px solid #f0f0f0;
}
.show-year td:hover {
  background-color: #f0f0f0;
}
.show-year .now-month {
  border-top: 2px solid blue;
}
.show-year .current-month {
  background-color: #1890ff !important;
}
